﻿Public Class Profile
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

        If Request.Params("TravellerName") = User.Identity.Name Then
            btn_EditProfile.Visible = True
            label_ILikeFood.Visible = True
            ListView1.Visible = True
            If User.IsInRole("admin") Then
                btn_SeeVIP.Visible = True
                label_VIP.Visible = False
            Else
                btn_SeeVIP.Visible = False
                label_VIP.Visible = True
            End If
        Else
            btn_EditProfile.Visible = False
            label_ILikeFood.Visible = False
            ListView1.Visible = False
            btn_SeeVIP.Visible = False
            label_VIP.Visible = False
        End If
    End Sub

End Class